package com.AJava1710D.testHash;

import org.apache.ibatis.annotations.ConstructorArgs;

/**
 * 作者: LCG
 * 日期: 2020/6/27 11:56
 * 描述:
 */

public class UserOO {

    private String userName;

    public UserOO(String userName) {
        this.userName = userName;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    @Override
    public boolean equals(Object obj) {
        UserOO uu=(UserOO)obj;
        if(uu.userName.equals(this.userName)){
            return true;
        }
        return false;
    }


    @Override
    public int hashCode() {
        return this.userName.hashCode();
    }
}
